import { Column, Entity, PrimaryGeneratedColumn } from "typeorm"

@Entity({ name: "wechatpay", engine: "InnoDB" })
export class WechatPayEntity {
  // index
  @PrimaryGeneratedColumn({ type: "int" })
  id: number

  // Merchant ID
  @Column({ type: "varchar" })
  mchid: string

  // appid
  @Column({ type: "varchar" })
  appid: string

  // api_key_v3
  @Column({ type: "varchar" })
  api_key_v3: string

  // Certificate serial number
  @Column({ type: "varchar" })
  serial_number: string

  // private key
  @Column({ type: "text" })
  private_key: string

  // status
  @Column({ type: "tinyint" })
  status: number
}
